package com.sslpay.merchant.convert;

import com.sslpay.merchant.api.dto.MerchantDTO;
import com.sslpay.merchant.vo.MerchantRegisterVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 描述：将商户注册vo和dto进行转换
 *
 * @author ssl
 * @create 2020/04/30 9:52
 */
@Mapper
public interface MerchantRegisterConvert {
    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    /**
     * dto->vo
     *
     * @param merchantDTO
     * @return
     */
    MerchantRegisterVO dtoToVo(MerchantDTO merchantDTO);

    /**
     * vo-->dto
     *
     * @param merchantRegisterVO
     * @return
     */
    MerchantDTO voToDto(MerchantRegisterVO merchantRegisterVO);
}
